import tkinter

# 主页
class Home():
    def __init__(self,tk_mainwindow) -> None:
        self.tk_mainwindow = tk_mainwindow
        self.horizontal = 400
        self.vertical = 400
        self.showWidget()
        
    def showWidget(self):
        self.tk_mainwindow.geometry(f'{self.horizontal}x{self.vertical}')

        tkinter.Label(self.tk_mainwindow, text="主页，待设计").grid(row=0, column=0)


        # self.button_commit = tkinter.Button(self.tk_mainwindow, text="报文转化", bg="lightblue", width=10,command=self.sayhello)
        # self.button_commit.grid(row=0,column=0,sticky='nsew')
        

        # self.button_commit = tkinter.Button(self.tk_mainwindow, text="用例模板转换", bg="lightblue", width=10,command=self.sayhello)
        # self.button_commit.grid(row=0,column=1,sticky='nsew')

    def sayhello(self):
        print('hello')